<div id="body" class='tabs'>
<?php
	include "messages/info_send_in_out.php";
	if($_GET['mode']=="send" || $_GET['mode']==""){
?>
<div id='send' style='margin-top: 10px;'>
<?php
	include "messages/send.php";
	if($error_flag1 == true) echo $error_1; 
	if($error_flag2 == true) echo $error_2;
	if($success_flag = true) echo $success;
?>
</div>
<?php
	} else if($_GET['mode']=="in"){
?>
<!-- Форма за разглеждане на съобщения при входящи съобщения -->
<div id='in'>
	<?php
		include "messages/in.php";
	?>
</div>
<br /><br />
<?php
	} else if($_GET['mode']=="out"){
?>
<!-- Форма за разглеждане на съобщения при изходящи съобщения -->
<div id='out'>
	<?php
		include "messages/out.php";
	?>
</div>	
<br /><br />
<?php
	}
?>
</div>